/*
 * 作者: 侯晓宇
 * 时间: 2017-01-11 
 * 说明：
 * Copyright (c) 2016-2017 中研沃兮
 */

'use strict';

(function (win) {
    //配置baseUrl
    var baseUrl = document.getElementById("appinit").getAttribute("data-baseurl");
    
    /*
     * 文件依赖
     */
    var config = {
        baseUrl: baseUrl,           //依赖相对路径
        paths: {                    //
            echo: 'libs/echo',
            jquery: "libs/jquery-2.2.1.min",
            blur: "libs/background-blur.min",
            md5: "libs/jquery.md5",
            sockjs: "libs/sockjs",
            stomp: "libs/stomp"
        },
        shim: {                     //引入没有使用requirejs模块写法的类库。
            'jquery': {
                exports: '$'
            },
            'blur': {
            	deps: ['jquery'],
            	exports: 'blur'
            },
            'md5': {
            	deps: ['jquery'],
            	exports: 'md5'
            },
            'stomp': {
            	deps: ['sockjs'],
            	exports: 'stomp'
            }
        }
    };
	
    require.config(config);

})(window);
